#ifndef _UART_H
#define _UART_H

#include "sn_config.h"
struct uart_dev_t 
{
    void (*send_string  )(struct uart_dev_t *dev, const char *string);
    void (*send_buffer  )(struct uart_dev_t *dev,uint8_t *buffer, uint32_t len);
    void (*send_byte    )(struct uart_dev_t *dev,uint8_t data);
    void (*hal_send_byte)(uint8_t data);
};
int uart_init(struct uart_dev_t **dev);

#endif // !_UART_H
